<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TAROT</title>
    <link rel="stylesheet" href="./css/normal.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/meanings.css">
    <script src="./js/vue@2.js"></script>
    <link rel="shortcut icon" href="./favicon.png" type="image/x-icon">
</head>

<body>
    <div id="app" v-cloak>
        <t-header></t-header>

        <main class="container">
            <section>
                <div class="top">
                    <h1>Tarot Card <span>Meanings</span></h1>
                    <p>Explore the mystical world of Tarot, analyze Major and Minor Arcana card meanings, and understand
                        the deeper significance of Tarot cards.</p>
                </div>
            </section>
            <div class="card">
                <h2 class="card-title">Major Arcana</h2>
                <ul>
                    <li v-for="card in major" :key="card.id">
                        <a :href="`./meanings_detail.html?id=${card.id}`">
                            <div class="card-img">
                                <img :src="card.url" :alt="card.cardName">
                            </div>
                            <span class="card-name">{{card.cardName}}</span>
                        </a>
                    </li>
                </ul>
            </div>
            <div class="card">
                <h2 class="card-title">Minor Arcana</h2>
                <div class="card-group" v-for="group in minor">
                    <h3 class="card-sub-title">{{group.name}}</h3>
                    <ul>
                        <li v-for="card in group.card" :key="card.id">
                            <a :href="`./meanings_detail.html?id=${card.id}`">
                                <div class="card-img">
                                    <img :src="card.url" :alt="card.cardName">
                                </div>
                                <span class="card-name">{{card.cardName}}</span>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </main>

        <t-footer></t-footer>

    </div>
</body>
<script type="module">
    import { header, footer } from './components/index.js'
    import { major, minor } from './js/cardData.js'
    var vm = new Vue({
        el: '#app',
        components: {
            tHeader: header,
            tFooter: footer
        },
        data() {
            return {
                major,
                minor
            }
        },
        created() {

        },
        methods: {

        }
    })
</script>

</html>